@default-text-color: #888;
@text-dark-color: #333;
@light-action-color: #3C9DCF;
@light-action-hover-color: #41ABE1;
@text-hover-color: #5CAD1A;
@default-content-background: #A6EA57;

.mixin-grey-gradient{
    background: #f2f2f2; /* Old browsers */
    background: -moz-linear-gradient(top, #f2f2f2 0%, #e2e2e2 50%, #f7f7f7 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(50%,#e2e2e2), color-stop(100%,#f7f7f7)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #f2f2f2 0%,#e2e2e2 50%,#f7f7f7 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #f2f2f2 0%,#e2e2e2 50%,#f7f7f7 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #f2f2f2 0%,#e2e2e2 50%,#f7f7f7 100%); /* IE10+ */
    background: linear-gradient(to bottom, #f2f2f2 0%,#e2e2e2 50%,#f7f7f7 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f2f2', endColorstr='#f7f7f7',GradientType=0 ); /* IE6-9 */
}
.mixin-hoverable{
    cursor: pointer;
    cursor: hand;
}
.mixin-event-title-hover-transition{
    -moz-transition:  background 0.4s linear 0;
    -webkit-transition: background 0.4s linear 0;
    transition: background 0.4s linear 0;
}

html{
    background: url('../img/pattern_001.png');
}
body {
    background: url('../img/birds.png') no-repeat;
    color: @default-text-color;
    font: 16px/26px Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height:1.125em; /* 16x1.125=18px */
    text-rendering: optimizeLegibility;
    -webkit-appearance: caret;
    -webkit-font-smoothing: antialiased;
}
a{
    color: @light-action-color;
    &:hover{
        color: @light-action-hover-color;
    }
}
.wrapper {
    width: 100%;
    margin: 0 auto;
}
ul,ol{
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.align-right{
    float: right;
}
.action-button{
    background-color: @light-action-color;
    border-radius: 6px;
    color: #fff;
    display: inline-block;
    line-height: 1.2em;
    font-weight: bold;
    padding: 0.5em 1em;
    text-decoration: none;
    &:hover{
        background-color: @light-action-hover-color;
        color: #fff;
    }
}
h1{
    font-size: 1.5em;
    line-height: 1.25em;
}
.mixin-standard-shadow{
    -moz-box-shadow: 0 0 1px #888;
    -webkit-box-shadow: 0 0 1px#888;
    box-shadow: 0 0 1px #888;
}
.landing{
    text-align: center;
    width: 100%;
    img{
        margin-top: 9em;
    }
    span{
        display: block;
        font-size: 1.25em;
    }
}
.participant{
    img{
        .mixin-standard-shadow;
        border-radius: 6px;
    }
}
.event-description{
    h1{
        color: #F07057;
        font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;
        font-size: 2em;
        font-weight: bold;
    }
    p{
        line-height: 1.6em;
    }
    h1, footer{
        text-align: center;
    }
    footer{
        margin: 1.5em auto 2.5em;
    }
}
.event-participants{
    .mixin-standard-shadow;
    background: #333;
    border-radius: 12px;
    color: #fff;
    margin: 3em 0 3em;
    padding: 1em;
    position: relative;
    overflow: hidden;
    .participants-list{
        overflow: hidden;
        width: 100%;
    }
    .participant-item{
        float: left;
        margin: 0.5em 0;
        text-align: center;
        width: 33%;
        &:nth-child(4n+1){
            clear: left;
        }
    }
    .participant{
        opacity: 0.8;
        -webkit-transition: opacity 0.4s ease-in-out;
        -moz-transition: opacity 0.4s ease-in-out;
            -o-transition: opacity 0.4s ease-in-out;
            transition: opacity 0.4s ease-in-out;
        color: #ccc;
        font-weight: bold;
        text-decoration: none;
        .participant-details{
            display: block;
            width: 100%;
        }
        img{
            max-width: 12em;
            width: 80%;
        }
        &:hover{
            color: #fff;
            opacity: 1;
        }
    }
}
.pop-up{
    .details{
        .mixin-standard-shadow;
        background: #fff;
        border-radius: 6px;
        margin: 0 auto;
        overflow-y: auto;
        padding: 15px;
        position: relative;
        max-width: 700px;
        width: 86%;
    }
    background: rgba(0,0,0,0.5);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 100;
    img{
        display: none;
        float: left;
        margin: 0.5em;
        max-width: 12em;
        width: 80%;
    }
    .name{
        display: block;
        font-size: 1.25em;
        text-align: center;
        margin: 0.5em 0;
    }
    .description{
        display: block;
        padding: 0.5em;
    }
    .close-btn{
        .mixin-hoverable;
        background: url('../img/coliberator-close-btn-back.png') no-repeat 0 0;
        border: none;
        position: absolute;
        top: 3%;
        right: 0.5em;
        height: 15px;
        width: 15px;
    }
    .presentations{
        margin: 0.5em;
        ul{
            color: #666;
            list-style-type: disc;
            list-style-position: inside;
        }
    }
}
.event-fast-nav{
    a.nav-item{
        background: url('../img/ics-icon.png') no-repeat 0 0;
        color:  @text-dark-color;
        display: block;
        font-weight: bold;
        padding-left: 3em;
        text-decoration: none;
        &:hover{
            color:  #111;
        font-weight: bold;
        }
    }
}
/* ==============
MOBILE: Menu
============== */

.lang{
    padding-right: 0.875em;
    a {
        color: #ccc;
        display: block;
        font-size: 0.875em;

        text-align: center;
        text-decoration: none;

        &.active,
        &:hover{
            color: @light-action-hover-color;
        }
    }
    li{
        display: inline-block;
    }
}
.main-menu{
    ul {
        margin: 0;
        padding: 0;
    }
    a {
        display: block;
        margin-bottom: 0.875em;
        padding: 1em 0;

        text-align: center;
        text-decoration: none;

        color: @text-dark-color;

        &.active,
        &:hover{
            color: @light-action-hover-color;
        }
    }
}
.main .presentations-container {
    display: block;
    font-size: 0.875em;
    margin-bottom: 4em;
    li{
        .mixin-event-title-hover-transition;
        .mixin-hoverable;
        background: none;
        border-bottom: 1px solid #eee;
        margin: 0.5em 0 1em;
        .when{
            display: block;
        }
        .title{
            font-weight: bold;
        }
        &:hover{
            background: #fff;
        }
    }
    h3 a{
        .align-right;
        font-size: 0.75em;
    }
    p{
        display: none;
        margin: 0.25em 0;
    }
}
.main .event-details {
    font-size: 0.875em;
    line-height: 2em;
    text-align: center;
    margin-bottom: 2em;
    h2{
        margin-top: 0;
    }
    img{
        border-radius: 6px;
        border: 1px solid #ddd;
        height: 300px;
    }
}
.main .collaborators li {
    span{
        display: block;
    }
    a{
        display: inline-block;
        margin: 0.5em;
    }
}
@media only screen and (max-width: 480px) {
    .wrapper{
        width: 95%;
    }
    .header-container .main-menu{
        display: none;
    }
    .header-container .lang{
        text-align: center;
        margin-top: 1em;
        a{
            font-size: 1.25em;
        }
    }
    h1.title{
        display: block;
        text-align: center;
        #logo{
            height: 1.4em;
        }
    }
    .main .event-details img {
        height: 250px;
    }
    .event-participants{
        .participant-item{
            width: 50%;
        }
    }
    .pop-up{
        .name{
            text-align: center;
        }
        .description{
            padding: 0;
        }
    }
}

@media only screen and (min-width: 480px) {
    .wrapper{
        width: 90%;
    }
    .header-container{
        -moz-box-shadow: 0 0 5px #888;
        -webkit-box-shadow: 0 0 5px#888;
        box-shadow: 0 0 5px #888;
        background: #fff;
        padding: 1em 0;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 10;
        h1.title{
            display: block;
            float: none;
            margin: 0 0 1em;
            text-align: center;
            #logo{
                height: 2em;
            }
        }
        .lang{
            float: none;
            position: absolute;
            top: 1em;
            right: 0;
            a{
                font-size: 1.25em;
            }
        }
        .main-menu{
            clear: both;
            overflow: hidden;
            margin: 0;
            text-align: center;
            a {
                float: left;
                margin: 0 1% 0 0;
                padding: 0.5em;
                margin-bottom: 0;
            }
            ul{
                display: inline-block;
                li{
                    margin: 0 1em;
                    display: inline-block;
                }
            }
        }
    }
    .main-container{
        margin-top: 11em;
    }
    .motto{
        color: #888;
        float: right;
        font-size: 0.875em;
        font-style: italic;
        margin-top: 0.75em;
        width: 40%;
    }
    .pop-up{
        img{
            display: inline-block;
        }
    }
}

@media only screen and (min-width: 768px) {
    .wrapper{
        max-width: 1000px;
    }
    .main .event{
        overflow: hidden;
    }

    .header-container{
        overflow: hidden;
        h1.title{
            float: left;
            margin: 0;
        }
        .lang{
            position: initial;
            float: right;
            font-size: 0.75em;
        }
        .main-menu{
            overflow: hidden;
            margin: 0;
            clear: right;
            float: right;
            a {
                float: left;
                margin: 0 1% 0 0;
                padding: 0.5em;
                margin-bottom: 0;
            }
            ul{
                display: block;
                li{
                    display: inline-block;
                    margin: 0 0.2em;
            }
            }
        }
    }
    .main-container{
        margin-top: 8em;
    }
    .main .event-details {
        float: right;
        width: 55%;
    }
    .main .collaborators {
        float: left;
        width: 45%;
        span{
            margin: 1em 0 0.5em;
        }
        a{
            display: inline-block;
            margin: 1em;
        }
    }
    .event-description{
        h1, footer{
            text-align: left;
        }
        footer{
            margin: 1em 0;
        }
    }
    .event-participants{
        .participant-item{
            width: 25%;
        }
    }
}

@media only screen and (min-width: 1140px) {
}

.footer-container{
    clear: both;
    margin: 4em auto 2em;
    overflow: hidden;
    .copyright{
        font-size: 0.875em;
        float: left;
        a{
            color: #444;
            &:hover{
                color: @light-action-hover-color;
            }
        }
    }
}

.noscript .event-participants{
    li.item{
        display: inline-block;
        margin: 20px 0;
    }
    img{
        display: inline-block;
        vertical-align: top;
        width: 25%;
    }
    .details{
        display: inline-block;
        margin-left: 4%;
        width: 70%;
        h2{
            line-height: 1.5em;
            margin-top: 0px;
        }
    }
    .presentations{
        margin-top: 20px;
    }
}
.noscript .header-container{
    position: inherit !important;
}
.noscript .main-container{
    margin-top: 2em;
}
.noscript #presentations{
    li{
        cursor: default;
        margin: 5px 0;
        padding: 5px;
    }
    .title{
        cursor: normal;
        display: block;
    }
    .when{
        color: #aaa;
    }
}
.noscript.redirect{
    background: #fff;
    top: 0;
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 100;
    a{
        display: table;
        margin: 10em auto 0;
    }
}
